package com.gl.glcourses.repository.jpa;

import java.util.List;

import javax.persistence.Query;

import org.springframework.stereotype.Repository;

import com.gl.glcourses.repository.IFeedbackRepository;
import com.gl.glcourses.vos.Feedback;

@Repository
public class JpaFeedbackRepository extends JpaProjectRepository<Feedback> implements IFeedbackRepository<Feedback>{

	@Override
	public List<Feedback> listFeedback() {
		Query query = null;
		try {
			query = em.createQuery("FROM Feedback");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return query.getResultList();
	}

}
